<?php require_once('../config.php');
require_once('include/function.php');
if(!isset($_SESSION['admin'])) die('没有权限');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<html>
<head>
	<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<title>拾客>管理平台>模块</title>
	<style>
		body{margin: 20px;}
	</style>
</head>
<body>
<?php 
$model = $_GET['model'];
$action = $_GET['action'];

switch($model){
	case 'user':
		header('Location: user.php');
		break;
	case 'item':
		echo '<h3>物品管理</h3>';
		
		break;
	case 'letter':
		echo '<h3>信件管理</h3>';
		
		break;
	default:
		echo '<h3>站点管理</h3>';
		phpinfo();
}
?>
</body>
</html>
<?php 
mysql_free_result($result);
mysql_close($conn); ?>